All Questions
17 questions
3votes
2answers
251views
Tic-tac-toe OOP Minimax Algorithm
I wrote a module that I intend to use in my next tic-tac-toe project. All it is is a class that stores the boardstate along with some methods/properties. The biggest thing is the minimax alg. As shown ...
4votes
0answers
413views
A vehicle database in Excel
I'm looking for some help. I'm new to coding and have started creating this Vehicle database program in Excel for a friend to use. He is wanting to be able to see all vehicles he owns, when ...
5votes
1answer
1kviews
Matchsticks game in Python
I made the following game in Python applying object oriented programming and I would like to know if there is something to improve. PS: My native language is Spanish, if you see something wrong ...
3votes
1answer
81views
Data-type implementation for multiple dynamic histograms
This is almost exercise 3.2.14. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne (since I am self-studying, I changed it a little bit): Develop a version of ...
6votes
1answer
181views
Chemical reactor with UV light project in python
Introduction I'm new to python and made this code which computes the decay of sulphur dioxide (SO2) pollutant in a chemical reactor by ozone (O3) when it is hit by UV light. Code description Short ...
3votes
1answer
463views
Parse and format var_dump data to become more readable
I have a class that exposes var_dump data in order to get better human readable layout. I have achieved this with a lot of ...
1vote
2answers
89views
Class for User-defined Binary data type
I have written a program for a user-defined binary data type in JAVA. It has static methods for purposeful usage methods for binary arithmetic methods for bitwise operations It's working as intended,...
2votes
1answer
261views
Equity data processing: Fast and/or efficient file writing using PHP
Problem This project gets the past ~20 days of an equity data (such as $AAPL, $AMZN, $GOOG) plus the current equity "quote" (which comes every 60 seconds using a free API) and estimates seven "real-...
13votes
5answers
6kviews
Processing XYZ data from a large file
I'm new to programming (1.5 years experience at university), and I'm working on my first computer vision related project! My goal is to take a file which might have CSV (comma separated) or txt format ...
11votes
4answers
8kviews
A program that prints the longest substring of s in which the letters occur in alphabetical order
Assume s is a string of lower case characters. Write a program that prints the longest substring of s in which the letters occur ...
2votes
2answers
251views
C# page creator - best practices, improvements and dynamically calling classes
I'm a self-taught programmer and I've recently started working as a junior developer. Unfortunately I'm also the most experienced member of the team due to my employers unwillingness to pay senior ...
5votes
2answers
685views
Project Euler #23 Non-abundant sums
I'm having trouble optimizing the Project Euler problem number 23 : A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the ...
3votes
1answer
96views
Moving buttons is very slow
I have a very simple app which removes buttons and re-adds buttons to certain layouts when a button is clicked. The problem is this process is taking a very long time. How do I speed this process up? ...
4votes
1answer
4kviews
HND Java module (vending machine simulator)
As part of the distinction requirement, I am required to ask for testing/review of my code. There was no time allotted for this in class, and as such I am turning to the folks of StackExchange for ...
1vote
2answers
828views
Putting all desktop items into a new folder
I'm quite a newbie with Python, but I wanted to try my own little project, so I made a small script that puts all the desktop icons/folders into a newly created folder (called "Desktop1") if there are ...